cmake_minimum_required(VERSION 3.16)
project(CPPTest)

set(CMAKE_CXX_STANDARD 11)
set(CXX_FLAGS -march=native)
set(CMAKE_BUILD_TYPE "Release")

# find_package(PythonLibs REQUIRED)
# include_directories(${PYTHON_INCLUDE_DIRS})
# target_link_libraries(<your exe or lib> ${PYTHON_LIBRARIES})

include_directories(/usr/local/python375/include/python3.7m)
include_directories(/develop/eigen-eigen-323c052e1731/)
include_directories(/develop/pybind11-master/include/)

set(SOURCE_FILES main.cpp EigenExtention.h EigenExtension.cpp Gadget.h Gadget.cpp kMath.h kMath.cpp LLE.h LLE.cpp ReadCSV.h ReadCSV.cpp)
#动态库
add_library(kDimensionReduce SHARED ${SOURCE_FILES})
# add_library(kDimensionReduce STATIC ${SOURCE_FILES})
# add_executable(CPPTest ${SOURCE_FILES})

# Remove lib prefix
set_target_properties(kDimensionReduce PROPERTIES PREFIX "")
